package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/7/19
 * @Description：问答实体类
 */
@Entity(value = "SundayQuestion",noClassnameStored = true)
public class SundayQuestion extends BaseMongoEntity {
    private Long memberId;//用户id
    private String memberName;//用户名称
    private String image;//用户头像
    private Integer identity;//用户身份
    private Long parentId;//父id
    private String content;//内容
    private Integer status;//状态0--未审核1--审核通过2--不通过

    public SundayQuestion(){}
    public SundayQuestion(Long memberId,Long parentId,String content,Integer status){
        this.memberId=memberId;
        this.parentId=parentId;
        this.content=content;
        this.status=status;
    }
    public SundayQuestion( Long memberId, String memberName, String image, Integer identity, Long parentId,String content){
        this.memberId=memberId;
        this.memberName=memberName;
        this.image=image;
        this.identity=identity;
        this.parentId=parentId;
        this.content=content;
    }
    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
